#!/usr/bin/env node

const log=console.log()

let timer1,timer2,num=1

timer1=setInterval(time1,500)

  setTimeout
  (()=>{
    log('is over' )
    clearInterval(timer1)
    log('timer2 is start')
    timer2=setInterval(time2,500)
  },5000)
  function time1(){
    log('timer1')

  }
  function timer2(){
    log('timer2')
      if(num>5){
        num=0
        global(clearInterval(timer2))
      }
  }


